package com.example.mytestdemo.extensions

import android.os.Handler


fun Handler.removeCallbacksSafe(runnable: Runnable?) {
    runnable?.let { removeCallbacks(runnable) }
}

fun Handler.postDelayedSafe(runnable: Runnable?, delayMillis: Long) {
    runnable?.let { postDelayed(runnable, delayMillis) }
}